package com.leyou.seckill.pojo;

/**
 * 秒杀状态
 * @author RudolfHugh
 * @since 2020/5/29 16:34
 */
public enum SeckillStatEnum {

    SUCCESS(1,"秒杀成功"),
    END(0,"你来晚一步了"),
    REPEAT_KILL(-1,"重复秒杀"),
    INNER_ERROR(-2,"系统异常"),
    DATE_REWRITE(-3,"数据篡改");

    private int state;
    private String info;

    SeckillStatEnum(int state, String info) {
        this.state = state;
        this.info = info;
    }

    public int getState() {
        return state;
    }


    public String getInfo() {
        return info;
    }

}